import axios from 'axios';
//  创建axios实例--获取前端静态数据
const getLocalData = axios.create({
    baseURL: 'localhost:8080/src/assets/data',
    timeout: 6000
  });
  getLocalData.localGet = (url, params = {}) => {
    return new Promise((resolve,reject) => {
      requests.get(url,{
          params:params
        })
        .then(response => {
          resolve(response);
        })
        .catch(err => {
          reject(err)
        });
    });
  }
  export default {
    getLocalData
  }